//
//  BaseModel.m
//  CapriceMusic
//
//  Created by 蒋恩浩 on 16/1/6.
//  Copyright © 2016年 MYX. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

#pragma mark - initialize
- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

#pragma mark - CorrectionMethod
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.mydescription = value;
    }
    if ([key isEqualToString:@"id"]) {
        
        self.ids = value;
    }
}

@end
